$(document).ready(function(){
    var title_td = $("tbody td");
    var ads_info = $(".ads_info");
    var ads_title = $("#ads_title");
    ads_info.first().show();
    ads_title.text(title_td.first().text());
    title_td.first().addClass("selectDIV");
    title_td.css("cursor", "pointer").click(function(e){
        title_td.removeClass("selectDIV")
        $(e.currentTarget).addClass("selectDIV");
        var showid = $(e.currentTarget).attr("tabindex");
        ads_title.text($(e.currentTarget).text());
        ads_info.hide();
        $("#div_" + showid).show();
    });
    
})
